/**
 * 获取授权信息
 *
 * 输入参数:
 *      无
 *
 * 输出参数:
 *      object: 授权信息
 * 
 *   Created by wbx on 2022/9/9
 */
(function ({ UID }) {
  // 验证用户
  if (!UID) throw Error("未授权的访问");

  const DeviceCode = A.crypto.__License.DeviceCode;
  const Activated = A.crypto.__License.Activated;
  const SerialNumber = A.crypto.__License.SerialNumber;
  const NotBefore = A.crypto.__License.NotBefore;
  const NotAfter = A.crypto.__License.NotAfter;

  return {
    DeviceCode,
    Activated,
    SerialNumber,
    NotBefore,
    NotAfter,
  };
});